// #ifdef APP
const platform = plus.os.name.toLowerCase()
const permissionObj = uni.requireNativePlugin("LuanQing-Permission");
// #endif

// #ifndef APP
const platform = 'h5'
const permissionObj = null
// #endif
import config from "./config.js";
import store from '@/store'
export async function  getuserinfo(){
	if(!uni.getStorageSync("token"))return;
	let params = Object.assign(uni.getSystemInfoSync(),{})
	uni.$http.post("/api/user/getuserinfo",params)
	.then((res)=>{
		store.commit('login',res.data.userinfo)
	})
	.catch(err=>{
	  	console.log("err",err)
	})
}
uni.getCustomUserInfo = ()=>{
	getuserinfo()
}
uni.vibrateShortCustom = function(){}
uni.checkUserProfile = function(){}
uni.checkUserToken = function(){}
uni.checkUserLogin = function({snsapiBase = 'snsapi_base'} = {}){}
uni.checkUpdateProfilePopup = ()=>{}
uni.sleep = function (time){}
export function  pagesChatMessage(params){}
export function navigateTo(item){}
// #ifdef APP-PLUS
uni.is_in_call_room = false;
const meaAppModule = uni.requireNativePlugin("MeaApp-System");
export function inviteCallRoom(item){}
// #endif
uni.entryVideoRoom = function ({id}){}
uni.callService = function (){}
uni.checkAppUpgrade = function (){}
uni.gotuJoinus = function (){}
uni.openAppNotification = function (){}
import permision from "@/js_sdk/wa-permission/permission.js"
uni.openVideoPermision = function (){}
uni.checkVideoPermision = async function  (){}
uni.checkVoicePermision = async function (){}
uni.checkAppNotification = function (){}
// #ifdef APP-PLUS
const crop = uni.requireNativePlugin("Html5app-VideoCrop");
uni.html5appVideoCrop = function (params,success){}
/* uni.showModal = function(options){}; */
// #endif
uni.initIosPayment = (productIds)=>{}
uni.getUrlSavedFile = (url)=>{}
uni.requestPaymentIos = (params)=>{}
uni.remoteUrlToLocalPath = async function(url){}
const payStartJSApi = function(response,redirect_url) {}
uni.showTempLoading = function (time){}
uni.requestPaymentSync =  function (params){}
uni.customLogin = function (){}
uni.setMPWXOpenid = function (){}
uni.navigateToWebView = (params)=>{}